/**
 * Created by d on 2015/12/21.
 */

define(function (require, exports, module) {
    'use strict'
    
    var rk = require('rk');

    require('crm/js/apps/crm/crm');
    require('platform/core/css/all-xsy-widgets.css')
    require('oa/js/su/oa_list')

    $.widget('rk.doc', $.rk.oa_list,  {
        _create : function(){
            var me = this,
                elem = me.element,
                opt = me.options;
        },

        _init : function(){
            var me = this,
                $elem = me.element,
                opt = me.options;

            var head = rk.templateText(require('page/tmpl/rescenter/rescenter_list_new.tpl'),{});
            $elem.html(head);

            var groupId = rk.getUrlParam('groupId');

            $elem.rescenterList({
                //203054
                groupId: groupId,
                entityName: SESSION.keywords.account
            });

            me.setTitle();

        },

    });


    module.exports = {
        init : rk.crm.initPanel
    }

});
